package com.gec.teams.wechat.config.shiro;

/**
 * 功能：封装Token
 * 作者：YumTea
 * 日期：2024/6/14 10:35
 */
import org.apache.shiro.authc.AuthenticationToken;

public class OAuth2Token implements AuthenticationToken {
    private String token;

    public OAuth2Token(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}